package chap3.Task;
import java.util.Scanner;
public class Task11 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入是否是会员:是（y）/否（其他字符）");
        String a = input.next();
        System.out.println("请输入购物金额:");
        double b = input.nextDouble();
        if (a.equals("y")) {
            if (b >= 200) {
                b = b * 0.75;
            } else {
                b = b * 0.8;
            }
        } else {
            if (b >= 100) {
                b = b * 0.9;
            }
        }
        System.out.println("实际支付:" + b);

    }

}
